import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) { }

  @Get()  // 可配置路由
  getHello(): string {
    return this.appService.getHello();
  }

  @Get('new')
  getNew(): string {
    return 'new new new!!!';
  }

  @Get('product')
  getProduct(): string {
    return this.appService.getProduct();
  }
}
